package day4;

import java.io.*;

/**
 * ClassName：PhotoStream
 *
 * @Author：小鱼
 * @Create：2025-08-21 14:54
 */
public class PhotoStream {
    public static void main(String[] args)throws IOException {
        InputStream is = new FileInputStream("D:\\IDEA_project\\JP_Java\\week6\\src\\day4\\img.png ");
        OutputStream os = new FileOutputStream("D:\\IDEA_project\\JP_Java\\week6\\src\\day4\\b.png");
        int r = is.read();
        while (r!=-1){
           os.write(r);
            r = is.read();
        }
        os.close();
        is.close();
    }
}
